~ chicken-core (master) /manual/Module (chicken csi)


 1[[tags: manual]]
 2[[toc:]]
 3
 4== Module (chicken csi)
 5
 6This module provides procedures to access features specific to
 7the {{csi}} interactive interpreter.
 8
 9=== toplevel-command
10
11<procedure>(toplevel-command SYMBOL PROC [HELPSTRING])</procedure>
12
13Defines or redefines a toplevel interpreter command which can be invoked by entering
14{{,SYMBOL}}. {{PROC}} will be invoked when the command is entered and may
15read any required argument via {{read}} (or {{read-line}}). If the optional
16argument {{HELPSTRING}} is given, it will be listed by the {{,?}} command.
17
18
19=== set-describer!
20=== default-evaluator
21
22<procedure>(default-evaluator EXPR)</procedure>
23
24Takes {{EXPR}} and processes any of the built-in toplevel commands provided
25by {{csi}}. If {{EXPR}} is not a toplevel command, then it is evaluated using
26{{eval}}. This procedure is intended to be passed as an argument to {{repl}}
27to allow using {{csi}}s toplevel commands and history management in user-defined
28read-eval-print loops.
29
30
31=== editor-command
32
33<parameter>editor-command</parameter>
34
35Holds the name of an editor that should be used when the toplevel
36command {{,e}} is used.
37
38
39---
40Previous: [[Module (chicken continuation)]]
41
42Next: [[Module (chicken errno)]]
Trap